package and.activity;

import and.tools.FileHelper;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;


public class BuyActivity  extends BaseActivity{
	private WebView webView;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setNowActivity(this);
		setContentView(R.layout.buy);
		webView = (WebView)findViewById(R.id.wvBuy);
		webView.loadUrl("http://3g.iletou.com/?partnerId=1296");
		SharedPreferences sp =this.getSharedPreferences("ad",MODE_PRIVATE);
		if (!"test".equals(FileHelper
				.getText("http://android.snbw.cn/test.txt")) && !"no".equals(sp.getString("has", ""))) {
			findViewById(R.id.adView).setVisibility(View.GONE);
		}
	}
}
